package com.juzhi.dvrapp.utils;

/**
 * Created by YangHu on 2017/10/16.
 */

public class Config {

    public static final String DEVICE = "device";
    public static final String DEVICEID = "deviceId";
    public static final String USERNAME = "username";
    public static final String PASSWORD = "password";
    public static final String SSID = "ssid";
    public static final String ID = "id";
    public static final String EMAIL = "email";
    public static final String CHANNEL = "channel";
    public static final String PROTOCOL = "protocol";
    public static final String RESERVE = "reserve";

    public static final String PROTOCOL_TYPE_RTMP = "rtmp";
    public static final String PROTOCOL_TYPE_RTSP = "rtsp";


    public static final String RESULT_CMS_SUCCESS = "200";

    /* http 状态*/

    /*
     * 200：校验通过
     * 201：访问异常
     * 202：ssid错误
     * 203：用户名密码不一致
     * 204：用户在在别处登录
     */

    public static final int DEVICE_RESULT_SUCCESS = 200;
    public static final int DEVICE_RESULT_EXCEPTIONS = 201;
    public static final int DEVICE_RESULT_ERROR_SSID = 202;
    public static final int DEVICE_RESULT_ERROR_PWD = 203;
    public static final int DEVICE_RESULT_ERROR_LOGIN = 204;
    public static final int DEVICE_RESULT_OFFLINE = 205;
    public static final int DEVICE_RESULT_ERROR_TIMEOUT = -1;
    public static final int DEVICE_RESULT_CONNECTING = 1;

    /**
     * 设备类型
     */

    public static final int DEVICE_TPYE_LOCAL = 0;
    public static final int DEVICE_TPYE_REMOTE = 1;

}
